package com.gopay.common.log.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 日志目录枚举
 * 
 * @LogCategoryCd.java
 * @author dak.wang
 * @2016年4月7日 上午10:25:58 www.gopay.com.cn Inc.All rights reserved.
 */
public enum LogCategoryCd {
    // 订单
    ORDER("01"),
    // 用户
    USER("02"),
    // 配置
    CONFIG("03"),
    // 权限
    AUTH("04"),
    // 风控
    RISK("05"),
    // 结算
    SETTLE("06"),
    //账户
    ACCOUNT("07"),
    //交易
    TRANSFER("08");


    public final String value;

    private LogCategoryCd(String value) {
        this.value = value;
    }

    public static Map<String, Object> getLogCategoryCdMap() {
        Map<String, Object> categoryMap = new HashMap<String, Object>();
        categoryMap.put(ORDER.value, "订单");
        categoryMap.put(USER.value, "用户");
        categoryMap.put(CONFIG.value, "配置");
        categoryMap.put(AUTH.value, "权限");
        categoryMap.put(RISK.value, "风控");

        categoryMap.put(SETTLE.value, "结算");

        categoryMap.put(ACCOUNT.value, "账户");
        categoryMap.put(TRANSFER.value, "交易");


        return categoryMap;
    }

}
